package com.jhxx.service.impl;

import com.jhxx.mapper.SysUserDao;
import com.jhxx.entity.SysUser;
import com.jhxx.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author chengxu
 * Date  2019-12-09
 */
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserDao sysUserDao;
    
    @Override
    public SysUser get(String id){
        return sysUserDao.get(id);
    }
    
    @Override
    public List<SysUser> findList(SysUser sysUser) {
        return sysUserDao.findList(sysUser);
    }
    
    @Override
    public List<SysUser> findAllList() {
        return sysUserDao.findAllList();
    }
    
    @Override
    public int insert(SysUser sysUser) {
        return sysUserDao.insert(sysUser);
    }
    
    @Override
    public int insertBatch(List<SysUser> sysUsers){
        return sysUserDao.insertBatch(sysUsers);
    }
    
    @Override
    public int update(SysUser sysUser) {
        return sysUserDao.update(sysUser);
    }
    
    @Override
    public int delete(SysUser sysUser) {
        return sysUserDao.delete(sysUser);
    }

}
